package net.lgy.manager.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import net.lgy.manager.AccountManager;
import net.lgy.mapper.AccountMapper;
import net.lgy.model.AccountDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class AccountManagerImpl implements AccountManager {
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public AccountDO findByPhone(String phone) {
        AccountDO accountDO = accountMapper.selectOne(new QueryWrapper<AccountDO>().eq("phone", phone));
        return accountDO;
    }
}
